<?php
            class Human {
                protected $rost = 0;
                protected $ves = 0;
                public $rase = "Human";

                public function Human($r, $v) {
                    $this->rost = $r;
                    $this->ves = $v;
                }
                public function RostOut() {
                    echo $this->rost."<br />";
                }
                public function VesOut() {
                    echo $this->ves."<br />";
                }
            }

            class Doctor extends Human {
                protected $prof = "Doctor";
                public function ShowProf() {
                    echo $this->prof;
                }
            }
            
?>
